#include"http.hpp"

int main()
{
    Socket cli_sock;
    bool ret = cli_sock.CreateClient(8085,"127.0.0.1");
    if(ret == false)
    {
        ERR_LOG("create newlink error");
        abort();
    }
    cout << "Create Client Success"<< endl;
    string str = "GET /login HTTP/1.1\r\n\r\n";
    cli_sock.Send(str.c_str(),str.size());
    char buf[1024] = {0};
    int size = cli_sock.Recv(buf,1023);
    buf[size] = 0;
    DBG_LOG("client recv:%s",buf);
    while(1)
    {
        sleep(1);
    }
    return 0;
}